package com.backstage.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.backstage.entity.po.SysPermission;
import com.backstage.mapper.SysPermissionMapper;
import com.backstage.service.ISysPermissionService;
import com.baomidou.framework.service.impl.SuperServiceImpl;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangkun
 * @since 2017-11-16
 */
@Service
public class SysPermissionServiceImpl extends SuperServiceImpl<SysPermissionMapper, SysPermission> implements ISysPermissionService {

	@Autowired
	SysPermissionMapper sysPermissionMapper;
	
	public List<SysPermission> findUserMenu(String id) {
		return sysPermissionMapper.findUserMenu(id);
	}

	public List<SysPermission> findPermissionListByUserId(String id) {
		return sysPermissionMapper.findPermissionListByUserId(id);
	}

	public List<SysPermission> findShortcutMenu(String id) {
		return sysPermissionMapper.findShortcutMenu(id);
	}

}
